package cn.jasonfu.cyan.rest;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author jasonfu
 * @date 2021/8/19 15:29
 */
@RestController
@RequestMapping("/ping")
public class PingRestController {

    @GetMapping(produces = MediaType.TEXT_PLAIN_VALUE)
    public Mono<String> ping() {
        return Mono.just("PONG");
    }

}
